package com.soft.javase.day04.interfaces;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/21
 */
public class Employee extends Person implements Add{
    private String id;
    private double wage;
    private int workAge;

    public Employee(String name, String address, String id, double wage, int workAge) {
        super(name, address);
        this.id = id;
        this.wage = wage;
        this.workAge = workAge;
    }

    @Override
    public void raiseSalary() {
        this.wage *= 1.10;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + getName() + '\'' +
                ", address='" + getAddress() + '\'' +
                ", id='" + id + '\'' +
                ", wage=" + wage +
                ", workAge=" + workAge +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public int getWorkAge() {
        return workAge;
    }

    public void setWorkAge(int workAge) {
        this.workAge = workAge;
    }
}
